Forms, Elements - Text Area

 

Use

Text Areas are used when you want extended feedback from a visitor. Otherwise they are just like Text boxes. (See discussion and background for more details).

Properties

ATTRIBUTE

REQUIRED?

DESCRIPTION

NAME=" "

Required

The name of the text box.

ROWS=" "

Required

The number of rows of text the text area spans.

COLS=" "

Required

The number of characters the text area spans.

Default Text

Optional

Displays text in the text box area. Note: This option is not standard, see below for an example.

Example

<TEXTAREA NAME="thoughts" ROWS="4" COLS="40"> Please enter your thoughts here...;/TEXTAREA>

 

NOTE

For this example to work it must be inside form tags (<FORM .. ..> .. .. </FORM>). The entire form code, including all the examples, is ready for you to use.